$('#savedataform ul:not(.no-stripes)').each(function(a, b) {
$(this).find('li:not(.ui-widget-header)').each(function(i, v) {
var k = i % 2 + 1;
$(this).addClass('bg0' + k);
});
});
$('#savedataform ul:not(.no-stripes)>li:last-child').addClass('bbottom');
$('#savedataform button').button();

$( ".datepicker" ).datepicker({ldelim}
	showOtherMonths: true,
	selectOtherMonths: true,
			changeMonth: true,
			changeYear: true,
			showButtonPanel: true,
			dateFormat: _dateFormat
{rdelim});

$('#savedataform .chzn-select').chosen().css('display', '').addClass('ui-helper-hidden-accessible');

$('#savedataform div.wysiwyg').each(function(i,v){literal}{
$(this).elrte({toolbar: "eldorado",
fmOpen : function(callback) {
console.log("fmOpen");
    $('<div />').dialogelfinder({
      url: _docroot + 'admin/elfinder/',
      commandsOptions: {
        getfile: {
          oncomplete: 'destroy' 
        }
      },
      getFileCallback:function(a){
      console.log(a);
      }
    });
  }}
  );
$(this).elrte('val',$('#'+$(this).data('related')).val());
}
{/literal});